# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class BookItem(scrapy.Item):
    # define the fields for your item here like:
    # 书名
    name = scrapy.Field()
    # 简介
    introduction = scrapy.Field()
    # 作者
    author = scrapy.Field()
    # 分类
    category = scrapy.Field()
    # 子分类
    subcategory = scrapy.Field()
    # 总字数
    wordCount = scrapy.Field()
    # 章节数量
    chapterCount = scrapy.Field()
    # 状态，0连载 1完结
    state = scrapy.Field()
    # 来源链接
    source = scrapy.Field()


class ChapterItem(scrapy.Item):
    # define the fields for your item here like:
    # 书的id
    bookId = scrapy.Field()
    # 章节编号
    index = scrapy.Field()
    # 章节名
    name = scrapy.Field()
    # 更新时间
    updateTime = scrapy.Field()
    # 章节字数
    wordCount = scrapy.Field()
    # 章节内容
    content = scrapy.Field()
    # 来源链接
    source = scrapy.Field()
